package classPractice;

public class StringIndexofTest {
    public static void main(String[] args) {
        String str1 = new String("Good Good study,Day Day Up");
        System.out.println(str1);
        int post = str1.indexOf('G');
        System.out.println(post);
        int post2 = str1.indexOf("Day");
        System.out.println(post2);
    }
}
